<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="lessonInfoList" checkbox="true" fitColumns="true" title="课程信息设置" actionUrl="lessonInfoController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="课程编号"  field="lessonNo"   query="false" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="课程名称"  field="lessonName"   query="true" queryMode="single"  width="120"></t:dgCol>
<%--    <t:dgCol title="学分"  field="credit"   query="false" queryMode="single"  width="120"></t:dgCol> --%>
<%--    <t:dgCol title="周学时"  field="weekCredit"   query="true" queryMode="single"  width="120"></t:dgCol> --%>
<%--    <t:dgCol title="总学时"  field="allCredit"   query="true" queryMode="single"  width="120"></t:dgCol> --%>
<%--    <t:dgCol title="理论学时"  field="theoryCredit"   query="false" queryMode="single"  width="120"></t:dgCol> --%>
<%--    <t:dgCol title="实验学时"  field="testCredit"   query="false" queryMode="single"  width="120"></t:dgCol> --%>
<%--    <t:dgCol title="课程简介"  field="lessonDesc"   query="false" queryMode="single"  width="120"></t:dgCol> --%>
<%--    <t:dgCol title="教材"  field="teaching"   query="false" queryMode="single"  width="120"></t:dgCol> --%>
<%--    <t:dgCol title="参考书目"  field="bibliography"   query="false" queryMode="single"  width="120"></t:dgCol> --%>
   <t:dgCol title="负责人工号"  field="teacher.staffNo"   query="false" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="负责人姓名"  field="teacher.realName"   query="true" queryMode="single"  width="120"></t:dgCol>
<%--    <t:dgCol title="开设单位号"  field="unitNo"   query="false" queryMode="single"  width="120"></t:dgCol> --%>
<%--    <t:dgCol title="实践学时"  field="practiceCredit"   query="false" queryMode="single"  width="120"></t:dgCol> --%>
   <t:dgCol title="开设院系"  field="college.collegeName"   query="false" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="面向专业"  field="major.majorName"   query="false" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
   <t:dgDelOpt title="删除" url="lessonInfoController.do?doDel&id={id}" />
   <t:dgFunOpt  funname="editItemDetail({'编辑'},{'lessonInfoController.do?goUpdate'},id,{'945'},{'400'})" title="编辑"  />
   <t:dgToolBar title="录入" icon="icon-add" url="lessonInfoController.do?goAdd" funname="add" height="350" width="945"></t:dgToolBar>
   <t:dgToolBar title="批量删除"  icon="icon-remove" url="lessonInfoController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
   <t:dgToolBar title="查看" icon="icon-search" url="lessonInfoController.do?goUpdate" funname="detail" height="350" width="945"></t:dgToolBar>
   <t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar>
   <t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
   </t:datagrid>
  </div>
 </div>
 <script src = "webpage/com/mengtian_tech/device_mgr/dict/dictGroupList.js"></script>		
 <script type="text/javascript">
 $(document).ready(function(){
 		//给时间控件加上样式
 			$("#dictGroupListtb").find("input[name='createDate']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 });
 
//导入
function ImportXls() {
	openuploadwin('Excel导入', 'lessonInfoController.do?upload', "lessonInfoList");
}

//导出
function ExportXls() {
	JeecgExcelExport("lessonInfoController.do?exportXls","lessonInfoList");
}

//模板下载
function ExportXlsByT() {
	JeecgExcelExport("lessonInfoController.do?exportXlsByT","lessonInfoList");
}
 </script>